import { Component } from 'react'
import { Modal } from 'antd'
import EditProductForm from './EditProductForm'

export default class EditProduct extends Component {
  render () {
    return (
      <div>
        <Modal
          visible={this.props.visible}
          footer={null}
          title="编辑商品"
          width="700px"
          onCancel={this.props.onCancel}
        >
          <EditProductForm
            close={this.props.onCancel}
            getTableData={this.props.getTableData}
            data={this.props.data}
          />
        </Modal>
      </div>
    )
  }
}
